/*************************************************
 *
 * class MemoryPool
 * package memory pool
 * others use same memory allocator.
 *
 * **********************************************/
#ifndef MEMORYPOOL_H
#define MEMORYPOOL_H

#include "global.h"

class MemoryPool : protected boost::noncopyable
{
public:
    MemoryPool();
    ~MemoryPool();

    void *alloc(size_t size);
    void free(void *p, size_t size);
};

#endif // MEMORYPOOL_H
